<template>
  <div class="map_warp" id="mapWarp">

  </div>
</template>

<script>
export default {
  data() {
    return {

    }
  },
  mounted() {
    this.initSdk()
  },
  methods: {
    initSdk() {
      var map = new BMap.Map("mapWarp");  // 创建Map实例
      map.centerAndZoom("西安",6);
    }
  }
}

</script>

<style lang="scss" scoped>
.map_warp{
  height: 900px;
}
</style>
